<?php
namespace app\index\model;

use think\Model;

class ss extends Model
{
    public function addstudent($class_Id,$student_Id,$student_status){
        $Data = [
            "class_Id" => $class_Id,
            "student_Id" => $student_Id,
            "student_status" => $student_status,
        ];
        return $this->insert($Data);
    }

    public function isPass($class_Id,$student_Id){
        $map = [
            "class_Id" => $class_Id,
            "student_Id" => $student_Id,
        ];
        return $this->where($map)->select();
    }

    public function setStatus($status,$ids){
        $map["id"] = ["IN","$ids"];
        return $this->where($map)->update(["student_status"=>$status]);
    }
}
?>